list(APPEND objects_json
    abacusjson.cpp
    general_info.cpp
    init_info.cpp
    readin_info.cpp
    output_info.cpp
)

add_library(
    json_output
    OBJECT
    ${objects_json}
)

if(ENABLE_COVERAGE)
  add_coverage(json_output)
endif()

if(BUILD_TESTING)
  if(ENABLE_MPI)
    add_subdirectory(test)
  endif()
endif()
